<?php
/*if(isset($_SERVER['HTTP_REFERER'])) {
$domain = parse_url($_SERVER['HTTP_REFERER']);
$search_eg =  array('www.baidu.com','www.google.com.hk','www1.baidu.com',
		'www.soso.com','www.sogou.com','www.yahoo.com','wap.baidu.com',
		);
	if(in_array($domain['host'],$search_eg)) {
		header('Location:http://localhost/');
		exit;
	}
}*/
session_start();

date_default_timezone_set('Asia/Shanghai');
//error_reporting(3);
// change the following paths if necessary
$yii=dirname(__FILE__).'/yii/framework/yiilite.php';
$config=dirname(__FILE__).'/protected/config/main.php';
$errcode = dirname(__FILE__).'/protected/config/errcode.php';
require_once 'config.php';
defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
require_once($yii);

//require_once($errcode);
Yii::createWebApplication($config)->run();
